// ************************************************************************ //
// The types declared in this file were generated from data read from the
// WSDL File described below:
// WSDL     : http://ekoindri.com/radphp/research/soap_sis_entry_mapel_soal.php?wsdl
//  >Import : http://ekoindri.com/radphp/research/soap_sis_entry_mapel_soal.php?wsdl>0
// Encoding : ISO-8859-1
// Version  : 1.0
// (1/1/2012 3:40:44 PM - - $Rev: 28374 $)
// ************************************************************************ //

unit soap_sis_entry_mapel_soal;

interface

uses InvokeRegistry, SOAPHTTPClient, Types, XSBuiltIns;

type

  // ************************************************************************ //
  // The following types, referred to in the WSDL document are not being represented
  // in this file. They are either aliases[@] of other types represented or were referred
  // to but never[!] declared in the document. The types from the latter category
  // typically map to predefined/known XML or Embarcadero types; however, they could also 
  // indicate incorrect WSDL documents that failed to declare or import a schema type.
  // ************************************************************************ //
  // !:string          - "http://www.w3.org/2001/XMLSchema"[Gbl]
  // !:integer         - "http://www.w3.org/2001/XMLSchema"[Gbl]

  TInfoServer          = class;                 { "http://localhost"[GblCplx] }
  TDataMapelRow        = class;                 { "http://localhost"[GblCplx] }
  TDataMapelSoalInputRow = class;               { "http://localhost"[GblCplx] }



  // ************************************************************************ //
  // XML       : TInfoServer, global, <complexType>
  // Namespace : http://localhost
  // ************************************************************************ //
  TInfoServer = class(TRemotable)
  private
    Fserver_host: string;
    Fserver_database: string;
    Fserver_username: string;
    Fserver_password: string;
  published
    property server_host:     string  read Fserver_host write Fserver_host;
    property server_database: string  read Fserver_database write Fserver_database;
    property server_username: string  read Fserver_username write Fserver_username;
    property server_password: string  read Fserver_password write Fserver_password;
  end;



  // ************************************************************************ //
  // XML       : TDataMapelRow, global, <complexType>
  // Namespace : http://localhost
  // ************************************************************************ //
  TDataMapelRow = class(TRemotable)
  private
    FID: Int64;
    FMAPEL_KODE: string;
    FMAPEL_NAMA: string;
    FMAPEL_JENIS: string;
    FMAPEL_KELAS: string;
  published
    property ID:          Int64   read FID write FID;
    property MAPEL_KODE:  string  read FMAPEL_KODE write FMAPEL_KODE;
    property MAPEL_NAMA:  string  read FMAPEL_NAMA write FMAPEL_NAMA;
    property MAPEL_JENIS: string  read FMAPEL_JENIS write FMAPEL_JENIS;
    property MAPEL_KELAS: string  read FMAPEL_KELAS write FMAPEL_KELAS;
  end;

  TDataMapel = array of TDataMapelRow;          { "http://localhost"[GblCplx] }


  // ************************************************************************ //
  // XML       : TDataMapelSoalInputRow, global, <complexType>
  // Namespace : http://localhost
  // ************************************************************************ //
  TDataMapelSoalInputRow = class(TRemotable)
  private
    FID: Int64;
    FMAPEL_ID: Int64;
    FMAPELSOAL_KODE: string;
    FMAPELSOAL_JENIS: string;
    FMAPELSOAL_KELAS: string;
    FMAPELSOAL_WAKTU: Int64;
    FMAPELSOAL_PERTANYAAN: string;
    FMAPELSOAL_JAWABAN: string;
    FMAPELSOAL_PILIHAN_A: string;
    FMAPELSOAL_PILIHAN_B: string;
    FMAPELSOAL_PILIHAN_C: string;
    FMAPELSOAL_PILIHAN_D: string;
    FMAPELSOAL_PILIHAN_E: string;
    FMAPELSOAL_URL_GAMBAR: string;
    FMAPELSOAL_KETERANGAN: string;
  published
    property ID:                   Int64   read FID write FID;
    property MAPEL_ID:             Int64   read FMAPEL_ID write FMAPEL_ID;
    property MAPELSOAL_KODE:       string  read FMAPELSOAL_KODE write FMAPELSOAL_KODE;
    property MAPELSOAL_JENIS:      string  read FMAPELSOAL_JENIS write FMAPELSOAL_JENIS;
    property MAPELSOAL_KELAS:      string  read FMAPELSOAL_KELAS write FMAPELSOAL_KELAS;
    property MAPELSOAL_WAKTU:      Int64   read FMAPELSOAL_WAKTU write FMAPELSOAL_WAKTU;
    property MAPELSOAL_PERTANYAAN: string  read FMAPELSOAL_PERTANYAAN write FMAPELSOAL_PERTANYAAN;
    property MAPELSOAL_JAWABAN:    string  read FMAPELSOAL_JAWABAN write FMAPELSOAL_JAWABAN;
    property MAPELSOAL_PILIHAN_A:  string  read FMAPELSOAL_PILIHAN_A write FMAPELSOAL_PILIHAN_A;
    property MAPELSOAL_PILIHAN_B:  string  read FMAPELSOAL_PILIHAN_B write FMAPELSOAL_PILIHAN_B;
    property MAPELSOAL_PILIHAN_C:  string  read FMAPELSOAL_PILIHAN_C write FMAPELSOAL_PILIHAN_C;
    property MAPELSOAL_PILIHAN_D:  string  read FMAPELSOAL_PILIHAN_D write FMAPELSOAL_PILIHAN_D;
    property MAPELSOAL_PILIHAN_E:  string  read FMAPELSOAL_PILIHAN_E write FMAPELSOAL_PILIHAN_E;
    property MAPELSOAL_URL_GAMBAR: string  read FMAPELSOAL_URL_GAMBAR write FMAPELSOAL_URL_GAMBAR;
    property MAPELSOAL_KETERANGAN: string  read FMAPELSOAL_KETERANGAN write FMAPELSOAL_KETERANGAN;
  end;

  TDataMapelSoalInput = array of TDataMapelSoalInputRow;   { "http://localhost"[GblCplx] }

  // ************************************************************************ //
  // Namespace : http://localhost
  // soapAction: http://ekoindri.com/radphp/research/soap_sis_entry_mapel_soal.php/%operationName%
  // transport : http://schemas.xmlsoap.org/soap/http
  // style     : rpc
  // binding   : SERVICE_ENTRY_SISWA_MAPELSOALBinding
  // service   : SERVICE_ENTRY_SISWA_MAPELSOAL
  // port      : SERVICE_ENTRY_SISWA_MAPELSOALPort
  // URL       : http://ekoindri.com/radphp/research/soap_sis_entry_mapel_soal.php
  // ************************************************************************ //
  SERVICE_ENTRY_SISWA_MAPELSOALPortType = interface(IInvokable)
  ['{0E1C10B1-A1DF-707D-46E7-711CD4567C9F}']
    function  DATA_MAPEL(const connection_string: TInfoServer; out mapellist: TDataMapel): string; stdcall;
    function  SISWA_SIMPAN_MAPELSOAL_DATASET(const connection_string: TInfoServer; const daftarmapelsoal: TDataMapelSoalInput): string; stdcall;
  end;

function GetSERVICE_ENTRY_SISWA_MAPELSOALPortType(UseWSDL: Boolean=System.False; Addr: string=''; HTTPRIO: THTTPRIO = nil): SERVICE_ENTRY_SISWA_MAPELSOALPortType;


implementation
  uses SysUtils;

function GetSERVICE_ENTRY_SISWA_MAPELSOALPortType(UseWSDL: Boolean; Addr: string; HTTPRIO: THTTPRIO): SERVICE_ENTRY_SISWA_MAPELSOALPortType;
const
  defWSDL = 'http://ekoindri.com/radphp/research/soap_sis_entry_mapel_soal.php?wsdl';
  defURL  = 'http://ekoindri.com/radphp/research/soap_sis_entry_mapel_soal.php';
  defSvc  = 'SERVICE_ENTRY_SISWA_MAPELSOAL';
  defPrt  = 'SERVICE_ENTRY_SISWA_MAPELSOALPort';
var
  RIO: THTTPRIO;
begin
  Result := nil;
  if (Addr = '') then
  begin
    if UseWSDL then
      Addr := defWSDL
    else
      Addr := defURL;
  end;
  if HTTPRIO = nil then
    RIO := THTTPRIO.Create(nil)
  else
    RIO := HTTPRIO;
  try
    Result := (RIO as SERVICE_ENTRY_SISWA_MAPELSOALPortType);
    if UseWSDL then
    begin
      RIO.WSDLLocation := Addr;
      RIO.Service := defSvc;
      RIO.Port := defPrt;
    end else
      RIO.URL := Addr;
  finally
    if (Result = nil) and (HTTPRIO = nil) then
      RIO.Free;
  end;
end;


initialization
  InvRegistry.RegisterInterface(TypeInfo(SERVICE_ENTRY_SISWA_MAPELSOALPortType), 'http://localhost', 'ISO-8859-1');
  InvRegistry.RegisterDefaultSOAPAction(TypeInfo(SERVICE_ENTRY_SISWA_MAPELSOALPortType), 'http://ekoindri.com/radphp/research/soap_sis_entry_mapel_soal.php/%operationName%');
  InvRegistry.RegisterReturnParamNames(TypeInfo(SERVICE_ENTRY_SISWA_MAPELSOALPortType), 'return;return');
  RemClassRegistry.RegisterXSClass(TInfoServer, 'http://localhost', 'TInfoServer');
  RemClassRegistry.RegisterXSClass(TDataMapelRow, 'http://localhost', 'TDataMapelRow');
  RemClassRegistry.RegisterXSInfo(TypeInfo(TDataMapel), 'http://localhost', 'TDataMapel');
  RemClassRegistry.RegisterXSClass(TDataMapelSoalInputRow, 'http://localhost', 'TDataMapelSoalInputRow');
  RemClassRegistry.RegisterXSInfo(TypeInfo(TDataMapelSoalInput), 'http://localhost', 'TDataMapelSoalInput');

end.